package com.lyy.king.tools.enums;

/**
 * 操作 excel类型
 * @ClassDescription:
 * @JdkVersion: 1.8
 * @Author: cdx
 * @Created: 2023/12/26 19:43
 */
public enum ImportExcelOperatorTypeEnum {
    TEST("TEST","测试"),
    ;
    private String typeCode;
    private String desc;

    ImportExcelOperatorTypeEnum(String typeCode, String desc) {
        this.typeCode = typeCode;
        this.desc = desc;
    }

    public static ImportExcelOperatorTypeEnum getByCode(String operatorType) {
        for (ImportExcelOperatorTypeEnum value : values()) {
            if (value.getTypeCode().equals(operatorType)) {
                return value;
            }
        }
        return null;
    }

    public String getTypeCode() {
        return typeCode;
    }

    public String getDesc() {
        return desc;
    }
}
